#ifndef LORA_DATA_PACKAGE_H
#define LORA_DATA_PACKAGE_H
#ifdef GCC_DEBUG
#include <stdint.h>
#else
#include "stm8l15x.h"
#endif
typedef struct Lora_Data_Pack {
    uint8_t Head;  //5a 55
    uint8_t Length;
    uint16_t WanAddr;  //网关地址
    uint16_t LanAddr;
    uint8_t ProtocolVersion;
    uint8_t *Payload;
    uint8_t CheckSum;
    uint8_t End; // 6a 69
}   Lora_Data_Pack;



    typedef enum {
        VS_FAIL = -1, //5a 55
        VS_OK = 0
    } Validate_Status;

#endif
